{
struct exec_domain *ed = current;
struct domain *d = ed->domain;
- struct trap_bounce *tb = &d->thread.trap_bounce;
+ struct trap_bounce *tb = &ed->thread.trap_bounce;
trap_info_t *ti;
unsigned long fixup;
{
unsigned int condition;
struct exec_domain *d = current;
- struct trap_bounce *tb = &ed->thread.trap_bounce;
+ struct trap_bounce *tb = &d->thread.trap_bounce;
DEBUGGER_trap_entry(TRAP_debug, regs, error_code);
OFFSET(XREGS_orig_eax, struct xen_regs, orig_eax);
BLANK();
- OFFSET(DOMAIN_processor, struct domain, processor);
- OFFSET(DOMAIN_shared_info, struct domain, shared_info);
- OFFSET(DOMAIN_event_sel, struct domain, thread.event_selector);
- OFFSET(DOMAIN_event_addr, struct domain, thread.event_address);
- OFFSET(DOMAIN_failsafe_sel, struct domain, thread.failsafe_selector);
- OFFSET(DOMAIN_failsafe_addr, struct domain, thread.failsafe_address);
- OFFSET(DOMAIN_trap_bounce, struct domain, thread.trap_bounce);
+ OFFSET(EDOMAIN_processor, struct exec_domain, processor);
+ OFFSET(EDOMAIN_vcpu_info, struct exec_domain, vcpu_info);
+ OFFSET(EDOMAIN_event_sel, struct exec_domain, thread.event_selector);
+ OFFSET(EDOMAIN_event_addr, struct exec_domain, thread.event_address);
+ OFFSET(EDOMAIN_failsafe_sel, struct exec_domain, thread.failsafe_selector);
+ OFFSET(EDOMAIN_failsafe_addr, struct exec_domain, thread.failsafe_address);
+ OFFSET(EDOMAIN_trap_bounce, struct exec_domain, thread.trap_bounce);
BLANK();
- OFFSET(SHINFO_upcall_pending, shared_info_t,
- vcpu_data[0].evtchn_upcall_pending);
- OFFSET(SHINFO_upcall_mask, shared_info_t,
- vcpu_data[0].evtchn_upcall_mask);
+ OFFSET(VCPUINFO_upcall_pending, vcpu_info_t, evtchn_upcall_pending);
+ OFFSET(VCPUINFO_upcall_mask, vcpu_info_t, evtchn_upcall_mask);
BLANK();
OFFSET(TRAPBOUNCE_error_code, struct trap_bounce, error_code);